package com.xu.springboot04.service.impl;

import com.xu.springboot04.bean.Blog;
import com.xu.springboot04.mapper.BlogMapper;
import com.xu.springboot04.service.BlogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BlogServiceImpl implements BlogService {

    @Autowired
    BlogMapper blogMapper;

    public Blog getBlogById(String id){
        return blogMapper.getBlogById(id);
    }
}
